import Vue from 'vue'
import App from './App.vue'
import router from "@/router/index"// 引入路由对象

// 脚手架中用"@"代表src的绝对路径，@就相当于：C:\Users\Peter\Desktop\网易云音乐\src
import "@/assets/logo.png"//logo图标
import "@/mobile/flexible"//自适应宽度
import "@/styles/reset.css"//重置html标签的默认样式

import { NavBar,Tabbar, TabbarItem,Col, Row,Image as VanImage,Cell, CellGroup,Icon, Search,PullRefresh, List  } from 'vant';// 引入vant组件
// 全局注册引入vant中要用的组件
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Icon);
Vue.use(Search);
Vue.use(PullRefresh);
Vue.use(List);

Vue.config.productionTip = false
new Vue({ 
  el:"#app",
  render: h => h(App),
  router:router
});
  